import 'package:flutter/material.dart';

class palyfloat extends StatefulWidget {
  palyfloat({Key key}) : super(key: key);

  @override
  State<palyfloat> createState() => _palyfloatState();
}

class _palyfloatState extends State<palyfloat> {
  @override
  Widget build(BuildContext context) {
    return Container(
        height: 55,
        width: MediaQuery.of(context).size.width,
        padding: EdgeInsets.symmetric(horizontal: 15),
        child: Stack(
          children: [
            Container(
              padding: EdgeInsets.only(right: 15, left: 70),
              margin: EdgeInsets.only(top: 5),
              height: 50,
              decoration: BoxDecoration(
                  borderRadius: BorderRadius.circular(25),
                  color: Color(0xffcbb8b7)),
              child: Row(
                mainAxisAlignment: MainAxisAlignment.spaceBetween,
                children: [
                  Container(
                    child: Text(
                      '断断续续的我失去你的消息',
                      style: TextStyle(color: Colors.white),
                    ),
                  ),
                  Container(
                    child: Row(
                      children: [
                        Container(
                          padding: EdgeInsets.all(2),
                          height: 36,
                          width: 36,
                          decoration: BoxDecoration(
                              color: Colors.white,
                              borderRadius: BorderRadius.circular(18)),
                          child: Container(
                            decoration: BoxDecoration(
                                borderRadius: BorderRadius.circular(17),
                                color: Color(0xffcbb8b7)),
                            child: Icon(
                              Icons.pause,
                              color: Colors.white,
                              size: 20,
                            ),
                          ),
                        ),
                        Container(
                          margin: EdgeInsets.only(left: 15),
                          child: Icon(
                            Icons.menu,
                            color: Colors.white,
                          ),
                        )
                      ],
                    ),
                  )
                ],
              ),
            ),
            Container(
              height: 55,
              width: 55,
              child: ClipRRect(
                borderRadius: BorderRadius.circular(5),
                child: Image(
                    fit: BoxFit.cover,
                    image: NetworkImage(
                        'https://img1.baidu.com/it/u=2012261395,1310429120&fm=253&fmt=auto&app=138&f=JPEG?w=658&h=439')),
              ),
            )
          ],
        ));
  }
}
